<template>
  <div class="category_headerImg">
    <div class="category_header_img">
      <img width="1005" height="100%" src="http://cdn.rzico.com/img/%E5%9B%BE%E5%83%8F%203@2x.png">
    </div>
    <div class="category_header_content">
      <div class="category_box" v-for="item in categoryForm">
        <div class="category_box_img">
          <img width="100%" height="100%" :src="item.img">
        </div>
        <span class="category_box_name">{{item.name}}</span>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        categoryForm: [
          {
            img: 'http://cdn.rzico.com/img/%E5%9B%BE%E5%83%8F%203@2x.png',
            name: '心理评估预警'
          },
          {
            img: 'http://cdn.rzico.com/img/%E5%9B%BE%E5%83%8F%203@2x.png',
            name: '心理评估预警'
          },
          {
            img: 'http://cdn.rzico.com/img/%E5%9B%BE%E5%83%8F%203@2x.png',
            name: '心理评估预警'
          },
          {
            img: 'http://cdn.rzico.com/img/%E5%9B%BE%E5%83%8F%203@2x.png',
            name: '心理评估预警'
          }
        ]
      }
    }
  }
</script>

<style scoped>
  .category_headerImg {
    position: relative;
    padding-top: 150px;
  }

  .category_header_img {
    position: absolute;
    top: 0;
    width: 375px;
    height: 180px;
  }

  .category_header_content {
    display: flex;
    flex-wrap: wrap;
    padding-left: 25px;
    padding-right: 25px;
    justify-content: space-between;
  }

  .category_box {
    width: 150px;
    height: 100px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.16);
    opacity: 1;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
    margin-bottom: 15px;
  }

  .category_box_img {
    width: 36px;
    height: 36px;
  }

  .category_box_name {
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 500;
    line-height: 20px;
    color: rgba(43, 43, 43, 1);
    opacity: 1;
    margin-top: 10px;
  }
</style>
